js Location window.location用來返回頁面的地址,並把頁面重定向新的頁面; location.pathname:返回當前的頁面地址和文件名 location.hostname:主機名 locat ...